package com.icode.service.management;

import com.icode.core.dto.house.RentDTO;
import com.icode.core.model.house.HouseType;
import com.icode.core.model.house.MyHouseStatus;
import com.icode.core.model.house.Rent;
import com.icode.core.model.user.User;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sunk
 * Date: 15-11-6
 * Time: 下午6:40
 * To change this template use File | Settings | File Templates.
 */
public interface RentService {
    List<RentDTO> findMyHouseByStatus(MyHouseStatus toRent, String type);

    List<RentDTO> findMyHouseByStatusNoType(MyHouseStatus toRent);

    boolean handleRent(RentDTO rentDTO);

    RentDTO findRentByGuid(String rentGuid);

    void update(RentDTO initRentDTO);

    List<RentDTO> findMyHouseByCondition(String area, String week, String thems, String price);

    void payFor(RentDTO rentDTOFound);

    List<RentDTO> findRentAllByPage(String currentPage, String status);

    List<RentDTO> findRentForHirer(User user);

    List<RentDTO> findRentForLessee(User user);

    String updateRent(User user, String rentGuid);

    void sentRentSuccess(String out_trade_no);

    List<RentDTO> findRentByUsername(String username);

    List<RentDTO> findRentByCustomer(String customer);
}
